﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Drempelvrij.DAL.Repositories;
using Drempelvrij.DAL.UnitOfWork;
using Drempelvrij.Models.Entities;
using System.Net;
using System.IO;

namespace Drempelvrij.UI.Web.Controllers
{
    public class TestController : Controller
    {
        private readonly IUnitOfWork _uow;
        private readonly IBestratingRepository _bestratingRepository;

        public TestController(IUnitOfWork uow,
                              IBestratingRepository bestratingRepository)
        {
            _uow = uow;
            _bestratingRepository = bestratingRepository;
        }

        public ActionResult Index()
        {
            IList<Bestrating> bestratingen = _bestratingRepository.FindAll().Take(100).ToList();
            Bestrating bestrating = bestratingen.First();

            return View(bestratingen);
        }
    }
}
